package com.tt.controller;

import com.tt.entity.vo.ProvinceLineVO;
import com.tt.service.ProvinceLineService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * </p>
 *
 * @version 1.0
 * @auther sugarttt
 * @since 2022-11-10 10:29:49
 */
@RestController
public class ProvinceLineController {

    private final ProvinceLineService provinceLineService;

    public ProvinceLineController(ProvinceLineService provinceLineService) {
        this.provinceLineService = provinceLineService;
    }

    @GetMapping("/getProvinceLine")
    public ProvinceLineVO getProvinceLine(String beginYear, String endYear, Integer provinceId){
        return provinceLineService.getProvinceLine(beginYear, endYear, provinceId);
    }

}
